package com.fy.tt.entity.vo;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;
import java.sql.ResultSet;


@Data
@NoArgsConstructor
@ToString
public class ParserVo {
    private Long id;
    private Date wordsUpdateTime;
    private Date parseUpdateTime;
    private String avatar;
    private String bandName;
    private Long bandObjId;

    public ParserVo(ResultSet rs) {
        try {
            this.id = rs.getLong("id");
            this.wordsUpdateTime = rs.getTimestamp("words_update_time");
            this.parseUpdateTime = rs.getTimestamp("parse_update_time") ;
            this.avatar = rs.getString("avatar") ;
            this.bandName = rs.getString("band_name");
            this.bandObjId = rs.getLong("band_obj_id");
        }catch (Exception e){
            System.out.println(e.getCause());
        }
    }

}
